/*
 * @Author: YuanQuan D
 * @Date: 2025-03-18 14:59:17
 * @LastEditTime: 2025-04-02 07:30:59
 * @FilePath: \F429_arm_control_slave\User_Code\Inc\remote_control_decode.h
 */

#ifndef _REMOTE_CONTROL_DECODE_
#define _REMOTE_CONTROL_DECODE_

#include "main.h"


typedef struct{
    uint32_t CCR1;
    uint32_t CCR2;
    uint8_t end_flag;
    uint8_t button_state;
    int32_t real_Ctr_ang;
    float duty_cycle;
    float frequency;
}RC_channelTypedef;

#define cnt_clk 180000000/(179+1)//计数器频率
#define remote_duty_max 14.3
#define remote_duty_min 7.1
#define remote_duty_mid 10.7

void Channel_Capture_printf(void);
void Remote_Pwm_Capture_Init(void);
void Remote_map(void);

#endif 
